package com.project.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.ChannelBean;
import com.project.service.IChannelService;
import com.project.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("channel")
public class ChannelController {
    @Autowired
    private IChannelService channelService;
    @RequestMapping("findAll")
    public List<ChannelBean> findAll(){
        return channelService.findAll();
    }

}
